import { userType } from '../../../../config/constan';
Component({
  options: {
    multipleSlots: true,
  },
  properties: {
    userInfo: {
      type: Object,
      value: {},
    },
  },
  data: {
    defaultAvatarUrl:
      'https://cdn-we-retail.ym.tencent.com/miniapp/usercenter/icon-user-center-avatar@2x.png',
      userType:userType
  },
  methods: {
    gotoUserEditPage() {
      this.triggerEvent('gotoUserEditPage');
    },
    login(){
      wx.navigateTo({ url: '/pages/login/login' });
    }
  },
});
